﻿@model OnlineExam.Entities.Attendance

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Attendance</legend>

    <div class="display-label">StartedAt</div>
    <div class="display-field">@String.Format("{0:g}", Model.StartedAt)</div>

    <div class="display-label">EndedAt</div>
    <div class="display-field">@String.Format("{0:g}", Model.EndedAt)</div>

    <div class="display-label">Status</div>
    <div class="display-field">@Model.Status</div>

    <div class="display-label">Score</div>
    <div class="display-field">@Model.Score</div>

    <div class="display-label">CreatedAt</div>
    <div class="display-field">@String.Format("{0:g}", Model.CreatedAt)</div>

    <div class="display-label">UpdatedAt</div>
    <div class="display-field">@String.Format("{0:g}", Model.UpdatedAt)</div>

    <div class="display-label">Exam</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Exam).ToString()</div>

    <div class="display-label">User</div>
    <div class="display-field">@(Model.User == null ? "None" : Model.User.Name)</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.ID }) |
    @Html.ActionLink("Back to List", "Index")
</p>


